package main

import (
	"context"

	"github.com/redis/go-redis/v9"
	"notabug.org/BigWaffleMonster/just_chat/pkg"
)

func main() {
	client := redis.NewClient(&redis.Options{
		Addr:     "localhost:6379",
		Password: "", // no password set
		DB:       0,  // use default DB
	})

	ctx := context.Background()
	messageHandler := pkg.NewMessageHandler(client, ctx)

	_ = pkg.StartServer(messageHandler.MessageHandler, client, ctx)
}
